package com.box;

public class MyGenericity {
    public static void main(String[] args) {
        Box<String> box1=new Box<>();
        box1.setElement("你很帅");
        String element1 = box1.getElement();
        System.out.println(element1);
        Box<Integer> box2=new Box<>();
        box2.setElement(18);
        Integer element2 = box2.getElement();
        System.out.println(element2);

    }
}
